const mongoose = require('../index.js');

// 创建user的Schema
const userSchema = new mongoose.Schema({
    username:String,
    password:String,
    age:{
        type:Number,
        default:18
    }
})

const userModel = mongoose.model('user', userSchema, 'user')

module.exports = userModel;